class Cat:
    __name ='小猫'
    def  print(self):
        print("私有方法")
        print(self.__name)

cat1 = Cat()
cat1.print()